home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / Local Format / Read Me < prev   
Encoding:
Text File  |  1995-11-13  |  1.1 KB  |  31 lines  |  [TEXT/ttxt]

  1. Local Number and Currency Formatting
  2. --------------------------------------------------------
  3.  
  4. On the Macintosh OS, the "Numbers" control panel provides the user with a way to
  5. define what region they are in. The Finder will use this information to display numbers
  6. in a localized format. If you want your application to display numbers and monetary
  7. amounts in the correct format for the region your user in is, all you have to do is call
  8. one of the following routines provided by locfmt.c
  9.  
  10. locfmt_Num2Str()   - convert an integer to a local number str
  11. locfmt_Str2Str()   - convert pascal str to a local number str
  12. locfmt_Dec2Str()   - convert 'decimal' str to a local number str
  13.  
  14. locfmt_Num2CurrStr()  - convert an integer to a local currency str
  15. locfmt_Dec2CurrStr()  - convert 'decimal' str to a local currency str
  16.  
  17.  
  18. Make sure you are using a recent version of Apple's Universal Headers
  19. as locfmt.h will test for the define GENERATING68K. Older versions
  20. do not have this define.
  21.  
  22. locfmt.c has been compiled by the following:
  23.  
  24. - Symantec C 7.0.4
  25. - MetroWorks C 68K 1.2.2 Lite
  26. - MetroWorks C PPC 1.2.2 Lite
  27.  
  28. I can be reached at
  29. Dale_Semchishen@mindlink.net
  30.  
  31.